package com.yx.frame.builder.validate;

public class Validator {

	String name;
	String staticMethodName;
	String comment;

	public Validator(String name, String staticMethodName,
			String comment) {
		this.name = name;
		this.staticMethodName = staticMethodName;
		this.comment = comment;
	}

	public String getName() {
		return name;
	}

	public String getStaticMethodName() {
		return staticMethodName;
	}

	public String getComment() {
		return comment;
	}

	public StringBuffer toXml() {
		StringBuffer xml = new StringBuffer();
		xml.append("		<Validator  name=\"" + this.getName() + "\" staticMethodName=\""
				+ this.getStaticMethodName() + "\" comment=\""
				+ this.getComment() + "\" />\r\n");
		return xml;
	}
}
